package cn.com.klun.tjy.api.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.com.klun.tjy.common.basePojo.AbstractApiController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <Description> 测试控制器 </Description>
 * <ClassName> TestsController </ClassName>
 *
 * @Author generator
 * @Date 2018年01月09日 13时:38分:52秒
 */
@Controller
@RequestMapping("/login")
public class TestsController extends AbstractApiController {

	private Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

	@RequestMapping("/login")
	public void login(Model model,HttpServletRequest request, HttpServletResponse response) {
		try {
			ajaxJsonMessage(response,"测试成功");
		} catch (Exception e) {
			logger.error("测试接口访问异常常", e);
		}
	}

}
